<template>
  <div class="news-list">
    <!-- tit-start -->
    <div class="news-tit">
      <div class="tit">
        <p>列表</p>
      </div>
      <div class="con">
        <ul>
          <li>
            <router-link class="a" to="/news/gsdt">公司动态</router-link>
          </li>
          <li>
            <router-link class="a" to="/news/hydt">行业动态</router-link>
          </li>
        </ul>
      </div>
    </div>
    <!-- tit-end -->
    <div class="news-con">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>

  export default {
    name: "NewsList",
  }
</script>

<style lang="scss" scoped>

  .news-list {
    width: 62.5%;
    margin: 40px auto;
    display: flex;
    justify-content: space-between;
    .news-tit {
      width: 25%;
      box-shadow: 0 0 10px #f5f5f5;
      .tit {
        padding: 16px 0 16px 16px;
        background-color: #1890ff;
        border-radius: 8px 8px 0 0;
        p {
          font-size: 20px;
          font-weight: 1000;
          color: #fff;
        };
      };
      .con {
        ul {
          padding: 0 16px;
          li {
            padding: 16px 0;
            border-bottom: 2px solid #f5f5f5;
            .a {
              font-size: 18px;
            }
            .router-link-active {
              color: #1890ff;
              font-weight: 1000;
            }
          }
          li:nth-last-child(1) {
            border-bottom: none;
          }
        }
      }
    }
    .news-con {
      width: 75%;
    }
  };
</style>